package com.xing.binbackend.pattern.factory12.ecommerce;

import org.springframework.stereotype.Component;

// 2. 具体支付实现（具体产品）
@Component("WechatPay")
class WechatPay implements Payment {
    @Override
    public void pay(double amount) {
        System.out.println("微信支付：" + amount + "元");
    }
}
